import axios from 'axios'
import './request.js'

// 获取所有通知
export const getNotice = function() {
    return axios.get('/content/info/pingtaiget')
}

const headers = { 'content-Type': 'application/json' }
    // 添加通知
export const addNotice = function(params) {
    return axios.post('/content/info/insert', JSON.stringify(params), { headers: headers })
}

// 删除通知
export const deleteNotice = function(params) {
    return axios.delete('/content/info/put')
}